package cn.mxb.logic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.mxb.floor.pagination.Result;
import cn.mxb.logic.dao.MxbBxRegisterDAO;
import cn.mxb.logic.entity.MxbBxRegister;
import cn.mxb.logic.service.IMxbBxRegisterService;

@Service("mxbBxRegisterService")
public class MxbBxRegisterServiceImpl  implements IMxbBxRegisterService {

	@Autowired
	private MxbBxRegisterDAO mxbBxRegisterDAO;
	
	
	@Override
	public MxbBxRegister findByProperty(String property, String value) {
		return mxbBxRegisterDAO.findByProperty(property, value);
	}

	/**
	 * 分页
	 */
	@Override
	public Result<MxbBxRegister> find(MxbBxRegister mxbBxRegister, int page, int row) {
		return mxbBxRegisterDAO.find(mxbBxRegister, page, row);
	}

	/**
	 * add
	 */
	@Override
	public MxbBxRegister add(MxbBxRegister mxbBxRegister) {
		return mxbBxRegisterDAO.save(mxbBxRegister);
	}

	@Override
	public void delete(int id) {
		mxbBxRegisterDAO.remove(MxbBxRegister.class,id);
	}
	@Override
	public void update(MxbBxRegister mxbBxRegister) {
		
	}
	
	@Override
	public List<MxbBxRegister> findListByProperty(String property, String value) {
		return mxbBxRegisterDAO.findListByProperty(property, value);
	}

	/**
	 * 查询全部
	 */
	@Override
	public List<MxbBxRegister> findAllList() {
		return mxbBxRegisterDAO.getAll(MxbBxRegister.class);
	}


	
}
